Projects each element of a collection into a new form.
Namespace:
C1.LiveLinqAssembly: C1.LiveLinq (in C1.LiveLinq.dll)
Syntax
C# |
---|
public static IIndexedSource<TResult> Select<TSource, TResult>( this IIndexedSource<TSource> source, Expression<Func<TSource, TResult>> selector ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function Select(Of TSource, TResult) ( _ source As IIndexedSource(Of TSource), _ selector As Expression(Of Func(Of TSource, TResult)) _ ) As IIndexedSource(Of TResult) |
Parameters
- source
- Type: C1.LiveLinq.Indexing..::..IIndexedSource<(Of <(<'TSource>)>)>
An IIndexedSource<TSource> collection of values to invoke a transform function on.
- selector
- Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'TSource, TResult>)>)>>)>)>
A transform function to apply to each element.
Type Parameters
- TSource
- The type of the elements of source.
- TResult
- The type of the value returned by selector.